home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / yweather.xml < prev    next >
Text File  |  2002-09-27  |  2KB  |  60 lines

  1. <search function="yweather">
  2.   <name>Yahoo Weather</name>
  3.   <description>Search Yahoo Weather (by the Weather channel) for weather forecasts by zip code or city name
  4.   <div class="helpboxDescLabels">Examples:</div> 
  5.   <table class="helpboxDescTable">
  6.     <tr>
  7.       <td>yweather 22204</td>
  8.     </tr>
  9.     <tr>
  10.       <td>Uses personalization variables if no arguments are present: yweather</td>
  11.     </tr>
  12.   </table>
  13.   </description>
  14.   <category>News</category>
  15.   <link>http://weather.yahoo.com/</link>
  16.   <contributor>Neel Doshi</contributor>
  17.   <form name="yweatherf"
  18.         action="http://search.weather.yahoo.com/search/weather2"
  19.         method="get">
  20.     <input type="hidden" name="p" value=""/>
  21.   </form>
  22.   <script><![CDATA[
  23.     function yweather(q)
  24.     {
  25.       if (q == "")
  26.           if (typeof user_zip != "undefined" && user_zip != "")
  27.           {
  28.               document.yweatherf.p.value=user_zip;
  29.               submitForm(yweatherf);
  30.           }
  31.           else if (typeof user_city != "undefined" && user_city != "")
  32.           {
  33.               document.yweatherf.p.value=user_city;
  34.               submitForm(yweatherf);
  35.           }
  36.           else
  37.           {
  38.               openSearchWindow("http://weather.yahoo.com/");
  39.               return false;
  40.           }
  41.       else if (q == "?")
  42.       {
  43.         nullArgs("yweather", q);
  44.         return false;
  45.       }
  46.       else
  47.       {
  48.         document.yweatherf.p.value=q;
  49.         submitForm(yweatherf);
  50.       }
  51.     }
  52.   ]]></script>
  53.  
  54.   <copyright>
  55.     Copyright (c) 2002 David Bau
  56.     Distributed under the terms of the
  57.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  58.   </copyright>
  59. </search>
  60.